import axios from "axios";

const serve = axios.create({
    baseURL: 'http://localhost:8080',
    timeout: 5000,
    withCredentials: true
})

serve.interceptors.request.use(config => {
    return config
}, err => {
    Promise.reject(err)
})

serve.interceptors.response.use(response => {
    return response
}, error => {
    return  Promise.reject(error)
})

export default serve;